package polymorphism;

public class B {

    public B(){
        fun();
    }

    public void fun(){
        System.out.println("B.fun()");
    }
}
